<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>显示图书列表</title>
<style type="text/css">
td,th {
	padding: 5px;
	background-color: #FFFFFF;
}
.div1{
	width:98%;
	text-align: center;
}
.div2{
	width:98%;
	text-align: center;
	padding:10px 0 0 0 ;
}
table{
	width:98%;
	border:0;
	text-align: center;
	background-color: #666666;
	
}
</style>
</head>
<body>
	<div class="div1">
		<h2>分页显示图书列表</h2>
	</div>
	<table cellpadding="0" cellspacing="1" >
		<tr>
			<th>ID</th>
			<th>图书名称</th>
			<th>价格</th>
			<th>数量</th>
			<th>作者</th>
		</tr>
		
		<c:forEach items="${list }" var="book">
			<tr align="center">
				<td>${book.id }</td>
				<td>${book.getName() }</td>
				<td>${book.getPrice() }</td>
				<td>${book.getBookCount() }</td>
				<td>${book.getAuthor() }</td>
			</tr>
		</c:forEach>
	</table>
	
	<div class="div2">
		${bar }
	</div>	
</body>
</html>